/**
 * @Author 12629
 * @Description：
 */
//类的实现者
public class DateTest {
    int year;
    private int moth;
    private int day;


    public DateTest() {
        //this(1901,1,5);
        System.out.println("Date().....");
    }

    public DateTest(int year, int moth, int day) {
        //this();
        this.year = year;
        this.moth = moth;
        this.day = day;
        System.out.println("Date(int ,int,int )....");
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMoth() {
        return moth;
    }

    public void setMoth(int moth) {
        this.moth = moth;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public void printDate() {
        //Date date = new Date();

        System.out.println(this.year+" 年"+
                this.moth+" 月"+ this.day+"日");
    }

}
